package src;


import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.StringTokenizer;


public class ComparaArchivos {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
				
		BufferedReader archGoloso = new BufferedReader(new FileReader(new File("Goloso.nodosLong")));
		
		BufferedReader archBusqLocal = new BufferedReader(new FileReader(new File("BusquedaLocal.nodosLong")));
		
		BufferedWriter writer = new BufferedWriter(new FileWriter(new File("comparaArchivos.out")));
		
		boolean hayQueSeguir = true;
		
		
		String lineaStr1;
		String lineaStr2;		
		while (hayQueSeguir)			
		{//Lee una a una las lineas
			
			//leo la linea entera
			lineaStr1 = archGoloso.readLine();	
			lineaStr2 = archBusqLocal.readLine();
			
			if (lineaStr1 != null && lineaStr2 != null)
			{			
							
				StringTokenizer tokenizer1 = new StringTokenizer(lineaStr1);					
				StringTokenizer tokenizer2 = new StringTokenizer(lineaStr2);
							
								
				//si la linea esta vacia entonces ya no hay mas nada por 
				if (lineaStr1.length() == 0 || lineaStr2.length() == 0)
				{
					hayQueSeguir = false; 
					continue;
				}
				else
				{				
					//levanto la cantidad de nodos y el peso del circuito, de cada arch				
					int cantNodos1 = Integer.parseInt(tokenizer1.nextToken());			
					int pesoCircs1 = Integer.parseInt(tokenizer1.nextToken());				
					int cantNodos2 = Integer.parseInt(tokenizer2.nextToken());			
					int pesoCircs2 = Integer.parseInt(tokenizer2.nextToken());
					
					if(cantNodos1 == cantNodos2)
					{
						if(pesoCircs1 == pesoCircs2)
						{
							writer.write("==");
							writer.newLine();
						}
						else if(pesoCircs1 < pesoCircs2)
						{
							writer.write("<");
							writer.newLine();
						}
						else
						{
							writer.write(">");
							writer.newLine();
						}
					}
					else				
						System.err.println("cantNodos1 != cantNodos2");
						
				}	
			}
			else
			{
				hayQueSeguir = false;				
			}
		}
		
		archGoloso.close();
		archBusqLocal.close();
		writer.close();

	}

}

